package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.TravelSign;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TravelSignMapper {
    int deleteByPrimaryKey(Long id);

    int insert(TravelSign sign);

    TravelSign selectByPrimaryKey(Long id);

    List<TravelSign> selectAll();

    int updateByPrimaryKey(TravelSign sign);

    TravelSign selectByTravelId(@Param("travelId") Long travelId, @Param("userId") Long userId);

    int queryGreatStatusCountByTravelId(Long travelId);

    int queryEnshrineStatusCountByTravelId(Long travelId);
}